package org.jadapter.examples.payment;

/**
 * User: pjesi
 * Date: Jan 18, 2011
 * Time: 11:03:09 PM
 */
public class ReceiptPayment implements Payment {


    private Receipt receipt;

    public ReceiptPayment(Receipt receipt) {
        this.receipt = receipt;
    }

    public void pay() {
        int amountToPay = receipt.getAmount();
        System.out.println("Amount payed is " + amountToPay);
    }

}
